﻿using System;
using Jayden.Dll.Web.Enums;
using Jayden.Dll.Web.HtmlControls.Descriptions;
using Jayden.Dll.Web.HtmlControls.Generics;
using Jayden.Dll.Web.HtmlControls.Interfaces;

namespace Jayden.Dll.Web.HtmlControls
{
	public class Map : HtmlElement, WithName
	{
		public Map() : base(MapDescription.Instance) { }

		public string Name { get { return this["name"]; } set { this["name"] = value; } }
	}
	public class MapDescription : HtmlElementDescription
	{
		public static readonly MapDescription Instance = new MapDescription();
		private MapDescription() : base("map", HtmlVersion.Html4, false, false) { }
		public override Type ControlType { get { return typeof(Map); } }
		public override string Description { get { return "in conjunction with any area element descendants."; } }
	}
}
